<?php
/**
 *@fileoverview: [群博客] 数据库配置
 *@author: 辛少普 <shaopu@staff.sina.com.cn>
 *@date: Tue Nov 30 01:48:23 GMT 2010
 *@copyright: sina
 */



    include(SERVER_ROOT_PATH.'/include/config/ml_dbOtherSrv.php');




return array(
    'user_account' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB_USER'],
                'pw' => $_SERVER['SINASRV_DB_PASS'],
                'name' => $_SERVER['SINASRV_DB_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB_USER_R'],
                'pw' => $_SERVER['SINASRV_DB_PASS_R'],
                'name' => $_SERVER['SINASRV_DB_NAME_R'],
            )
        ),
        'tb_n' => 1,
        'tb_prefix' => 'ml_user_account'
    ),
    'user_briefinfo' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB_USER'],
                'pw' => $_SERVER['SINASRV_DB_PASS'],
                'name' => $_SERVER['SINASRV_DB_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB_USER_R'],
                'pw' => $_SERVER['SINASRV_DB_PASS_R'],
                'name' => $_SERVER['SINASRV_DB_NAME_R'],
            )
        ),
        'tb_n' => 1,
        'tb_prefix' => 'ml_user_brief_info'
    ),
    'user_extinfo' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB_USER'],
                'pw' => $_SERVER['SINASRV_DB_PASS'],
                'name' => $_SERVER['SINASRV_DB_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB_USER_R'],
                'pw' => $_SERVER['SINASRV_DB_PASS_R'],
                'name' => $_SERVER['SINASRV_DB_NAME_R'],
            )
        ),
        'tb_n' => 1,
        'tb_prefix' => 'ml_user_ext_info'
    ),
    '3rd_service' => array(
            'connect' => array(
                'master' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT']
                    ),
                    'user' => $_SERVER['SINASRV_DB_USER'],
                    'pw' => $_SERVER['SINASRV_DB_PASS'],
                    'name' => $_SERVER['SINASRV_DB_NAME'],
                ),
                'slave' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R']
                    ),
                    'user' => $_SERVER['SINASRV_DB_USER_R'],
                    'pw' => $_SERVER['SINASRV_DB_PASS_R'],
                    'name' => $_SERVER['SINASRV_DB_NAME_R'],
                )
            ),
            'tb_n' => 1,
            'tb_prefix' => 'ml_user_3rd_service'
        ),
     'id_generator' => array(
            'connect' => array(
                'master' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT']
                    ),
                    'user' => $_SERVER['SINASRV_DB_USER'],
                    'pw' => $_SERVER['SINASRV_DB_PASS'],
                    'name' => $_SERVER['SINASRV_DB_NAME'],
                ),
                'slave' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R']
                    ),
                    'user' => $_SERVER['SINASRV_DB_USER_R'],
                    'pw' => $_SERVER['SINASRV_DB_PASS_R'],
                    'name' => $_SERVER['SINASRV_DB_NAME_R'],
                )
            ),
            'tb_n' => 1,
            'tb_prefix' => ''
        ),
    'collection_box' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 8,
        'tb_prefix' => 'ml_collection_box_'
    ),
    'collection_re' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 8,
        'tb_prefix' => 'ml_collection_relation_'
    ),
    'collection_comment' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 1,
        'tb_prefix' => 'ml_collection_comment_00'
    ),
    'sys_notice_rel' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 8,
        'tb_prefix' => 'ml_sys_notice_rel_'
    ),
    'sys_notice_content' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 1,
        'tb_prefix' => 'ml_sys_notice_content'
    ),
    'atme' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 8,
        'tb_prefix' => 'ml_atme_'
    ),
    'act2atme' => array(
        'connect' => array(
            'master' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER'],
                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                'name' => $_SERVER['SINASRV_DB2_NAME'],
            ),
            'slave' => array(
                'host' => array(
                    0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                ),
                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
            )
        ),
        'tb_n' => 8,
        'tb_prefix' => 'ml_act2atme_'
    ),
        // 关注表
        'follow'=> array(
            'connect' => array(
                'master' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                    ),
                    'user' => $_SERVER['SINASRV_DB2_USER'],
                    'pw' => $_SERVER['SINASRV_DB2_PASS'],
                    'name' => $_SERVER['SINASRV_DB2_NAME'],
                ),
                'slave' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                    ),
                    'user' => $_SERVER['SINASRV_DB2_USER_R'],
                    'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                    'name' => $_SERVER['SINASRV_DB2_NAME_R'],
                )
            ),
            'tb_n' => 8,
            'tb_prefix' => 'ml_follow_'
        ),
        
        // 粉丝表
        'fans' => array(
            'connect' => array(
                'master' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                    ),
                    'user' => $_SERVER['SINASRV_DB2_USER'],
                    'pw' => $_SERVER['SINASRV_DB2_PASS'],
                    'name' => $_SERVER['SINASRV_DB2_NAME'],
                ),
                'slave' => array(
                    'host' => array(
                        0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                    ),
                    'user' => $_SERVER['SINASRV_DB2_USER_R'],
                    'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                    'name' => $_SERVER['SINASRV_DB2_NAME_R'],
                )
            ),
            'tb_n' => 8,
            'tb_prefix' => 'ml_fans_'
        ),
        
        // 全部所有feed
        'public_feed' => array(
                'connect' => array(
                        'master' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                                ),
                                'user' => $_SERVER['SINASRV_DB2_USER'],
                                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                                'name' => $_SERVER['SINASRV_DB2_NAME'],
                        ),
                        'slave' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                                ),
                                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
                        )
                ),
                'tb_n' => 1,
                'tb_prefix' => 'ml_public_feed'
        ),
        
        // 全部所有feed
        'pic_feed' => array(
                'connect' => array(
                        'master' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB2_HOST'].':'.$_SERVER['SINASRV_DB2_PORT']
                                ),
                                'user' => $_SERVER['SINASRV_DB2_USER'],
                                'pw' => $_SERVER['SINASRV_DB2_PASS'],
                                'name' => $_SERVER['SINASRV_DB2_NAME'],
                        ),
                        'slave' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB2_HOST_R'].':'.$_SERVER['SINASRV_DB2_PORT_R']
                                ),
                                'user' => $_SERVER['SINASRV_DB2_USER_R'],
                                'pw' => $_SERVER['SINASRV_DB2_PASS_R'],
                                'name' => $_SERVER['SINASRV_DB2_NAME_R'],
                        )
                ),
                'tb_n' => 1,
                'tb_prefix' => 'ml_pic_feed'
        ),
        //手机版content
        'wap_content' => array(
                'connect' => array(
                        'master' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB3_HOST'].':'.$_SERVER['SINASRV_DB3_PORT']
                                ),
                                'user' => $_SERVER['SINASRV_DB3_USER'],
                                'pw' => $_SERVER['SINASRV_DB3_PASS'],
                                'name' => $_SERVER['SINASRV_DB3_NAME'],
                        ),
                        'slave' => array(
                                'host' => array(
                                        0 => $_SERVER['SINASRV_DB3_HOST_R'].':'.$_SERVER['SINASRV_DB3_PORT_R']
                                ),
                                'user' => $_SERVER['SINASRV_DB3_USER_R'],
                                'pw' => $_SERVER['SINASRV_DB3_PASS_R'],
                                'name' => $_SERVER['SINASRV_DB3_NAME_R'],
                        )
                ),
                'tb_n' => 1,
                'tb_prefix' => 'ml_wap_content'
        ),


);
